package org.synclib.util;

public class StringUtils {

	public static final String EMPTY = "";

	public static boolean equals(String one, String two) {
		boolean empty1 = isEmpty(one);
		boolean empty2 = isEmpty(two);
		if (empty1 || empty2)
			return empty1 && empty2;
		return one.equals(two);
	}

	public static boolean isEmpty(String string) {
		if (string == null)
			return true;
		if (string.length() == 0)
			return true;
		return false;
	}
}
